<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<link href="../css/estilos.css" rel="stylesheet" type="text/css" />
<%@ page import="java.util.*" %>
<%@ page import="beans.*" %>


<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>EME:Agregar Docente</title>
        <script language="javascript" type="text/javascript"src="../js/utilidades.js"></script>


    
    </head>

    <body >
        <sec:authorize ifAnyGranted="ROLE_SYSTEM">

        <table  border="0" width="100%">
            <thead>
                <tr>
                    <th >
                        <h1><img src="../images/EME2.png" width="175px"></h1>
                    </th>
                    <th >
                        <h1><img src="../images/headers/agregarDocente.png"></h1>
                    </th>

                </tr>
            </thead>
            <tbody>

                <tr>
                    <td width="200px" valign="top">
                         <div>
                            <jsp:include page="menu.jsp"/>
                        </div>
                    </td>
                    <td><center>

                        <FORM name="form1"
                             ACTION="../addDocente"
                             METHOD="POST"
                             onsubmit="return validaForm(this)">
                               <center>
                                   <table class="tabla2" border="0" style="border-color:transparent">
                                   <tbody>
                                  
                                       <tr>
                                           <td>
                                               Codigo:
                                           </td>
                                            <td>
                                                <input name="codigo"
                                                       size="10"
                                                       maxlength="7"
                                                       onKeyUp="this.value=this.value.toUpperCase();">
                                           </td>
                                       </tr>
                                       <tr>
                                           <td>
                                               Nombres
                                           </td>
                                           <td>
                                               <input name="nombres" 
                                                      size="35"
                                                      maxlength="30">
                                           </td>
                                       </tr>
                                        <tr>
                                           <td>
                                               Apellidos:
                                           </td>
                                           <td>
                                               <input name="apellidos" 
                                                      size="35"
                                                      maxlength="30">
                                           </td>
                                       </tr>
                                       <tr>
                                           <td>
                                               e-Mail:
                                           </td>
                                           <td>
                                              <input name="email" size="50"
                                                     maxlength="50" onchange="validarEmail(this)">
                                           </td>
                                       </tr>
                                        <tr>
                                           <td>
                                               Telefono celular:
                                           </td>
                                           <td>
                                              <input name="telefono" 
                                                     size="10"
                                                     maxlength="8"
                                                     onchange="validarCel(this)">
                                           </td>
                                       </tr>
                                       <tr>
                                           <td colspan="2">
                                               <center>
                                               <INPUT TYPE="SUBMIT" VALUE="Aceptar" >
                                               <input type="reset" value="Cancelar">
                                                </center>
                                           </td>
                                       </tr>
                                   </tbody>
                               </table>
                            </center>
                    </FORM>
                        </center>
                    </td>
                </tr>
            </tbody>
        </table>
        <div align="left">
        <jsp:include page="barrausuario.jsp"/>
        </div>
        </sec:authorize>
    </body>
</html>
